<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="expires" content="0">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta name="format-detection" content="telephone=no, address=no, email=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="misapplication-tap-highlight" content="no" />
		<meta name="HandheldFriendly" content="true" />
		<link rel="stylesheet" href="../../css/mui.min.css" type="text/css" charset="utf-8" />
		<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
		<link rel="stylesheet" href="../../css/product.css" type="text/css" charset="utf-8" />
		<style>
			.mui-bar-nav ~ .mui-content .mui-pull-top-pocket{
			  top: 160px !important;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav" style="padding: 0px;height: 2.64rem;">
			<div class="header">
				<div class="mui-header text-center" style="background:none;">
					<div class="title" style="line-height: 0.88rem;">主页</div>
				</div>
				<div class="profile" style="padding:0 0.64rem;display:table;height:1.76rem;width: 100%;">
					<div style="display:table-row;">
						<div style="display: table-cell;vertical-align: middle;width:1.3rem;">
							<img src="../../img/defaultImg.jpg" style="width:100%;" id="faceImg" />
						</div>
						<div style="display: table-cell;vertical-align: middle;text-align: left;">
							<div class="fl" style="">
								<span class="pic-icon fl inline-block pic-icon-person1"></span><span id="userName"></span>
								<br>
								<span class="pic-icon fl inline-block pic-icon-notice"></span><span id="mobile"></span>
							</div>
						</div>

					</div>
				</div>
			</div>
		</header>
		<div class="mui-content" style="margin-top: 2.64rem;">
			<p class="text-center" style="margin-bottom:0.15rem">当前库存</p>
		</div>	
		 

		
		<nav class="mui-bar mui-bar-tab">
        	<a class="mui-item  mui-active" id="homeIndex"  > <span class="pic-icon pic-icon-home"></span> <span class="mui-tab-label">主页</span> </a>
			<a class="mui-item" id="main-inout" > <span class="pic-icon pic-icon-inout"></span> <span class="mui-tab-label">出入库</span> </a> 
			<a class="mui-item" id="main-jxs"  > <span class="pic-icon pic-icon-jxs"></span> <span class="mui-tab-label">经销商</span> </a> 
			<a class="mui-item" id="main-center"  > <span class="pic-icon pic-icon-person"></span> <span class="mui-tab-label">个人中心</span> </a>	
	    </nav>
 
	</body>
	<script src="../../js/resize.js"></script>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/ajaxFun.js"></script>
	<script src="../../js/footer.js"></script>
	<script type="text/javascript">
		mui.init({
			subpages:[{
				url:'indexChild.html',
				id:'homeIndexChild',
				extras:{},
				styles:{
					top: '175px',
					bottom: '80px',
					background:'transparent',
				}
			}]
		});
		(function($, doc) {
			$.plusReady(function() {
					plus.nativeUI.closeWaiting();
					var self = JSON.parse(localStorage.getItem('$users') || '[]');
					/*获取个人资料*/
					var url = baseUrl + 'traderInfoController/getInfo.do';
					var data = {};
					ajaxFun.postFun(url, data, '', function(data) {
						data = data.data.dataList[0];
						document.getElementById("userName").innerHTML = data.name;//个人信息赋值
						document.getElementById("mobile").innerHTML = data.mobile;//个人信息赋值
						self.nickname=data.name;
						self.mobile=data.mobile;
						localStorage.setItem('$users', JSON.stringify(self));
					});	
		 
				$.back = function() {
					plus.runtime.quit();
				} //重新定义back函数、
			})
		}(mui, document))

		
	</script>

</html>